package edu.kjxy.day02Synchronized.towObjectTowLock;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 18:54
 */
public class ThreadA extends Thread {
    private HasSelfPrivateNum numRef;

    public ThreadA(HasSelfPrivateNum numRef) {
        super();
        this.numRef = numRef;
    }

    @Override
    public void run() {
        super.run();
        numRef.addI("a");
    }
}
